import { Module } from '@nestjs/common';
import { UserService } from './user.service';
import { UserController } from './user.controller';
import { User } from 'src/entities/user/user.entity';
import { UserBase } from 'src/entities/user/user-base.entity';
import { UserLogin } from 'src/entities/user/user-login.entity'; //用户数据
import { TypeOrmModule } from '@nestjs/typeorm';

@Module({
  imports: [TypeOrmModule.forFeature([User, UserBase, UserLogin])],
  controllers: [UserController],
  providers: [UserService],
  exports: [UserService], // 导出 UserService
})
export class UserModule {}
